package com.iraeta.entity.main.vo;

import com.iraeta.entity.main.TreeNode;
import com.iraeta.entity.main.PermissionType;
import java.util.ArrayList;

public class SysPermission {
    public static ArrayList<TreeNode> getPermissionTreeNode(){
        TreeNode basicData_Node = new TreeNode(String.valueOf(PermissionType.basicData), "基础数据");
        TreeNode renYuanMapping_Node = new TreeNode(String.valueOf(PermissionType.wuLiaoTongBu), "人员映射");
        basicData_Node.addNode(renYuanMapping_Node);

        TreeNode tongBuAdmin_Node = new TreeNode(String.valueOf(PermissionType.tongBuAdmin), "同步管理");
        TreeNode wuLiaoTongBu_Node = new TreeNode(String.valueOf(PermissionType.wuLiaoTongBu), "料品同步");
        tongBuAdmin_Node.addNode(wuLiaoTongBu_Node);

        TreeNode msgAdmin_Node = new TreeNode(String.valueOf(PermissionType.msgAdmin), "消息管理");
        TreeNode caiGouOrderAll_Node = new TreeNode(String.valueOf(PermissionType.caiGouOrderAll), "济宁采购消息");
        TreeNode caiGouOrderError_Node = new TreeNode(String.valueOf(PermissionType.caiGouOrderError), "济宁采购错误消息");
        TreeNode caiGouOrderZB_Node = new TreeNode(String.valueOf(PermissionType.caiGouOrderZB), "总部采购错误消息");
        msgAdmin_Node.addNode(caiGouOrderAll_Node);
        msgAdmin_Node.addNode(caiGouOrderError_Node);
        msgAdmin_Node.addNode(caiGouOrderZB_Node);

        ArrayList<TreeNode> res = new ArrayList<TreeNode>();
        res.add(basicData_Node);
        res.add(tongBuAdmin_Node);
        res.add(msgAdmin_Node);
        return res;
    }
}
